home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / cmorph.6 < prev    next >
Text File  |  1996-07-16  |  2KB  |  66 lines

  1. .TH CMORPH
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. CMORPH
  5.  
  6.  
  7.  
  8.  CurveType CMORPH( CurveType Crv1, CurveType Crv2,
  9.                    NumericType Method, NumericType Blend )
  10.  
  11.  or
  12.  
  13.  ListType CMORPH( CurveType Crv1, CurveType Crv2,
  14.                   NumericType Method, NumericType Blend )
  15.  
  16. Creates a new curve which is a metamorph of the two given curves.
  17. The two given curves must be compatible (see FFCOMPAT) before this blend
  18. is invoked. Very useful if a sequence that "morphs" one curve to another
  19. is to be created. Several methods of metamorphosis are supported according
  20. to the value of Method,
  21.  
  22.  
  23.     0   Simple convex blend.
  24.     1   Corner/Edge cutting scheme, scaled to same curve length.
  25.     2   Corner/Edge cutting scheme, scaled to same bounding box.
  26.     3   Same as 1 but with filtering out of tangencies.
  27.     4   Same as 2 but with filtering out of tangencies.
  28.     5   Multiresolution decompsition based metamorphosis. See CMULTRES.
  29.  
  30.  
  31. In Method 1, Blend is a number between zero (Crv1)
  32. and one (Crv2) defining the similarity to Crv1 and Crv2,
  33. respectively. A single curve is returned.
  34.  
  35. In Methods 2 to 5, Blend is a step size for the
  36. metamorphosis operation and a whole list describing the entire
  37. metamorphosis operation is returned.
  38.  
  39. Examples:
  40.  
  41.     for ( i = 0, 1, 300,
  42.         c = CMORPH( crv1a, crv1b, 0, i / 300.0 ):
  43.         color( c, yellow ):
  44.         viewobj( c )
  45.     );
  46.    
  47.     crvs = CMORPH( crv1a, crv1b, 2, 0.003 );
  48.     snoc( crv1b, crvs );
  49.     for ( i = 1, 1, sizeof( crvs ),
  50.         c = nth( crvs, i ):
  51.         color( c, yellow ):
  52.         viewobj( c )
  53.     );
  54.  
  55.     Turtle2 = ffmatch( Wolf, Turtle, 20, 100, 2, false, 2 );
  56.     ffcompat( Wolf, Turtle2 );
  57.     for ( i = 0, 1, 25,
  58.         c = CMORPH( Wolf, Turtle2, 0, i / 25 ):
  59.         color( c, yellow ):
  60.         viewobj( c )
  61.     );
  62.  
  63. creates three metamorphosis animation sequences, one that is based on
  64. a convex blend, one that is based on corner/edge cutting scheme.
  65. See alost SMORPH, and a third that employs FFMATCH.
  66.